<style>
    .none {
        display: none;
    }

    .show {
        display: block;
    }

    .active {
        background-color: #D9D9D9 !important;
    }

</style>
<div>

    <ul>
        <li ng-repeat="data in resultData">
            <!-- href为空 点击当前，展开 -->
            <div ng-if="!data.href" ng-click="close(data,$event);"
                 style="background-color: #FAFAFA;padding: 4px 0 4px 15px;">
                > {{data.name}}
                <span ng-if='data.isChildren' style="float: right;">
                    <span ng-show="data.state">收起</span>
                    <span ng-show="!data.state">展开</span>
                </span>

                 <!--href不为空 点击当前，跳转路由-->
                <div ng-if="data.children"
                    ng-repeat="item in data.children"
                    ng-click="go(item,$event)"
                    ng-show="data.state"
                    ng-class="{'active':state.includes(item.href)}" style="background-color: #FAFAFA;padding: 4px 0 4px 15px;">
                    {{item.name}}
                </div>
            </div>
            <!--<div ng-if="data.children" ng-show="data.state">-->
            <!--<side-menu-tree-directive-branch branch-data="data.children"></side-menu-tree-directive-branch>-->
            <!--</div>-->

        </li>
    </ul>
</div>



